package com.fau.fm.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import org.json.simple.JSONAware;
import org.json.simple.JSONObject;

public class MedicalOrdersInfo implements Serializable, JSONAware {

	private static final long serialVersionUID = -2269033188340452575L;

	private String id;			// 订单id
	private String serialNum;		// 编号
	private String name;		// 收货人
	private String phone;		// 联系电话
	private String province;	// 省
	private String city;		// 市
	private String district;	// 区
	private String address;		// 详细地址
	private String postCode;	// 邮编
	private String description;	// 备注
	private String invoice;		// 有无发票
	private String mediaName;	// 媒体名称
	private String orderNature;	// 订单性质
	private String logistics;	// 物流公司
	private String payType;		// 支付方式
	private BigDecimal payment;	// 货款
	private BigDecimal freight;	// 运费
	private BigDecimal receivable;	// 应收金额
	private BigDecimal amountPaid;	// 实收金额
	private BigDecimal balance;		// 本单后余额
	private Integer usePoints;		// 本单使用积分
	private Integer points;			// 本单积分
	private Integer afterUsePoints;	// 本单使用后积分
	private Integer useRed;			// 使用红包
	private Integer red;			// 本单红包
	private Integer afterUseRed;	// 本单使用后红包
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSerialNum() {
		return serialNum;
	}

	public void setSerialNum(String serialNum) {
		this.serialNum = serialNum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getInvoice() {
		return invoice;
	}

	public void setInvoice(String invoice) {
		this.invoice = invoice;
	}

	public String getMediaName() {
		return mediaName;
	}

	public void setMediaName(String mediaName) {
		this.mediaName = mediaName;
	}

	public String getOrderNature() {
		return orderNature;
	}

	public void setOrderNature(String orderNature) {
		this.orderNature = orderNature;
	}

	public String getLogistics() {
		return logistics;
	}

	public void setLogistics(String logistics) {
		this.logistics = logistics;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public BigDecimal getPayment() {
		return payment;
	}

	public void setPayment(BigDecimal payment) {
		this.payment = payment;
	}

	public BigDecimal getFreight() {
		return freight;
	}

	public void setFreight(BigDecimal freight) {
		this.freight = freight;
	}

	public BigDecimal getReceivable() {
		return receivable;
	}

	public void setReceivable(BigDecimal receivable) {
		this.receivable = receivable;
	}

	public BigDecimal getAmountPaid() {
		return amountPaid;
	}

	public void setAmountPaid(BigDecimal amountPaid) {
		this.amountPaid = amountPaid;
	}

	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public Integer getUsePoints() {
		return usePoints;
	}

	public void setUsePoints(Integer usePoints) {
		this.usePoints = usePoints;
	}

	public Integer getAfterUsePoints() {
		return afterUsePoints;
	}

	public void setAfterUsePoints(Integer afterUsePoints) {
		this.afterUsePoints = afterUsePoints;
	}

	public Integer getPoints() {
		return points;
	}

	public void setPoints(Integer points) {
		this.points = points;
	}

	public Integer getUseRed() {
		return useRed;
	}

	public void setUseRed(Integer useRed) {
		this.useRed = useRed;
	}

	public Integer getRed() {
		return red;
	}

	public void setRed(Integer red) {
		this.red = red;
	}

	public Integer getAfterUseRed() {
		return afterUseRed;
	}

	public void setAfterUseRed(Integer afterUseRed) {
		this.afterUseRed = afterUseRed;
	}

	@SuppressWarnings("unchecked")
	@Override
	public String toJSONString() {
		JSONObject obj = new JSONObject();
		obj.put("id", id);
		obj.put("serialNum", serialNum);
		obj.put("name", name);
		obj.put("phone", phone);
		obj.put("province", province);
		obj.put("city", city);
		obj.put("district", district);
		obj.put("address", address);
		obj.put("postCode", postCode);
		obj.put("description", description);
		obj.put("invoice", invoice);
		obj.put("mediaName", mediaName);
		obj.put("orderNature", orderNature);
		obj.put("logistics", logistics);
		obj.put("payType", payType);
		obj.put("payment", payment);
		obj.put("freight", freight);
		obj.put("receivable", receivable);
		obj.put("amountPaid", amountPaid);
		obj.put("balance", balance);
		obj.put("usePoints", usePoints);
		obj.put("points", points);
		obj.put("afterUsePoints", afterUsePoints);
		obj.put("useRed", useRed);
		obj.put("red", red);
		obj.put("afterUseRed", afterUseRed);
		return obj.toJSONString();
	}

}
